package models

type ProjectModel struct {
	ProjectId       int    `gorm:"column:project_id"`
	ProjectName     string `gorm:"column:project_name"`
	ProjectDescribe string `gorm:"column:project_describe"`
	AllocateUser    string `gorm:"column:allocate_user"`
	CreateTime      string `gorm:"create_time"`
}

func NewProjectModel(projectName, projectDescribe string) *ProjectModel {
	return &ProjectModel{ProjectName: projectName, ProjectDescribe: projectDescribe}
}

func (p *ProjectModel) TableName() string {
	return "project"
}
